package com.zmj.runner;

import com.zmj.service.RpcService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

/**
 * @author zhangmj
 * @date 2019/4/2 20:49
 */
@Component
public class MyStartupRunner implements CommandLineRunner {

    @Autowired
    private RpcService rpcService;

    @Override
    public void run(String... args) {
        rpcService.start();
    }
}
